﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace JuneLeeCMS.Controllers
{
    [HandleError]
    public class HomeController : Controller
    {
        public ActionResult Index()
        {
            ViewData["Message"] = "Welcome to ASP.NET MVC!";
            var db = new Northwind.NorthwindDB();
            var product = from p in db.Products
                          select p;
            return View(product);
        }

        public ActionResult About()
        {
            return View();
        }
    }
}
